<?
    include "../../php/common.php";
    $sql = "DELETE FROM product WHERE id = {$_POST['id']}"; 
    $res = mysqli_query($link,$sql);
    $arr = [] ;
    if( $res ){
        $arr['status'] = 1 ;
        $arr['info'] = "删除信息成功";      
    } else{
        $arr['status'] = 0 ;
        $arr['info'] = "删除信息失败"; 
    }
    echo json_encode($arr);
?>